#ifndef SIGNATURE_H
#define SIGNATURE_H

#include <QWidget>
#include "signaturebox.h"

namespace Ui {
class signature;
}

class signature : public QWidget
{
    Q_OBJECT

public:
    explicit signature(QWidget *parent = nullptr);
    ~signature();

private slots:
    void receBoxSin(QString data);

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_pushButton_3_clicked();

signals:
    void sendSignaDestroy(QString);   //用来签名界面传递销毁界面数据的信号

private:
    bool event(QEvent *event);
    void setPushbutton(int ifline);//根据画板上是否有线设置按钮颜色

private:
    Ui::signature *ui;
    signatureBox *stb;
    int ifLine = 0;//判断是否画线

};

#endif // SIGNATURE_H
